home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- timer += 1;
- rot = this._rotation + 90;
- this._x += Math.sin(rot * 3.141592653589793 / 180) * speed;
- this._y -= Math.cos(rot * 3.141592653589793 / 180) * speed;
- if(this.hitTest(_root.zako2.hit))
- {
- speed = 0;
- _root.zako2.myColor.setRGB(16777062);
- _root.zako2.hit.gotoAndPlay(2);
- _root.zako2.life -= 10;
- this.removeMovieClip();
- }
- if(this.hitTest(_root.zako3.hit))
- {
- speed = 0;
- _root.zako3.myColor.setRGB(16777062);
- _root.zako3.hit.gotoAndPlay(2);
- _root.zako3.life -= 10;
- this.removeMovieClip();
- }
- if(this.hitTest(_root.zako4.hit))
- {
- speed = 0;
- _root.zako4.myColor.setRGB(16777062);
- _root.zako4.hit.gotoAndPlay(2);
- _root.zako4.life -= 10;
- this.removeMovieClip();
- }
- if(this.hitTest(_root.zako5.hit))
- {
- speed = 0;
- _root.zako5.myColor.setRGB(16777062);
- _root.zako5.hit.gotoAndPlay(2);
- _root.zako5.life -= 10;
- this.removeMovieClip();
- }
- if(this.hitTest(_root.zako6.hit))
- {
- speed = 0;
- _root.zako6.myColor.setRGB(16777062);
- _root.zako6.hit.gotoAndPlay(2);
- _root.zako6.life -= 10;
- this.removeMovieClip();
- }
- if(this.hitTest(_root.zako7.hit))
- {
- speed = 0;
- _root.zako7.myColor.setRGB(16777062);
- _root.zako7.hit.gotoAndPlay(2);
- _root.zako7.life -= 10;
- this.removeMovieClip();
- }
- if(_root.yuka.jimen.hitTest(_X,_Y,true) || timer > 10)
- {
- this.removeMovieClip();
- }
- if(Key.isDown(65))
- {
- if(_root.yuka._x < 230)
- {
- this._x += _root.ido;
- }
- }
- if(Key.isDown(68))
- {
- if(_root.yuka._x > -2830)
- {
- this._x -= _root.ido;
- }
- }
- }
-